const Alexa = require('ask-sdk-core');
var APP_ID = undefined;

const Handlers = require('./handlers/Handlers');

const skillBuilder = Alexa.SkillBuilders.custom();
skillBuilder.addRequestInterceptors(function (req) {
    console.log('post data: \n', JSON.stringify(req));
});

exports.handler = skillBuilder
    .withSkillId(APP_ID)
    .addRequestHandlers(
        Handlers.LaunchRequestHandler,
        Handlers.HelloWorldIntentHandler,
        Handlers.SessionEndedRequestHandler,
        Handlers.HelpIntentHandler,
        Handlers.CancelAndStopIntentHandler,

        Handlers.TrickDescriptionIntent,
        Handlers.TrickTeachingIntent
    )
    .addErrorHandlers(Handlers.ErrorHandlers)
    .lambda();
